// src/components/CoolButton.vue
<template>
  <button class="cool-button">
    <slot>✨ 一个来自远方的酷按钮</slot>
  </button>
</template>

<script setup>
// 你的组件可以有复杂的逻辑
console.log('CoolButton 已加载！');
</script>

<style scoped>
.cool-button {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(45deg, #FF6B6B, #FFD93D);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.cool-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
</style>
